package com.community.admin.owner_information.validator;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author Aiden
 * @date 2021/11/21
 */
@Data
public class OwnerInformationValid implements Serializable {
    @NotEmpty(message = "业主账号不能为空")
    private String owner_account;
    @NotEmpty(message = "所住楼号不能为空")
    private String house_floor;
    @NotEmpty(message = "所住单元不能为空")
    private String house_unit;
    @NotEmpty(message = "门牌号不能为空")
    private String house_number;
    @NotEmpty(message = "居住人数不能为空")
    private String live_number;
    @NotEmpty(message = "发放门禁卡数不能为空")
    private String card_number;
    @NotEmpty(message = "车位情况不能为空")
    private String parking_situation;
    @NotEmpty(message = "直饮水开通情况不能为空")
    private String water_siyuation;
    @NotNull(message = "物业费缴纳时间不能为空")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payment_time;
}